<?php if($areas){ 
    foreach ($areas as $v) {
?>
<div class="p_one" onclick="getServer(this);" data-id="<?php echo $v['id'] ?>" data-name="<?php echo $v['area_name'] ?>">
    <b></b>
    <a href="javascript:;"><?php echo $v['area_name'] ?></a>
</div>
<?php
        } 
    }
?>